/* 学校信息 弹框
* @ 劳兆城 
* @ 2017-08-23*/

<template>
	<interact-model 
		ref="interact-model"
		title="学校信息"
		class="school-model">
		<div class="school-warpper">
			<div class="school-table">
				<table class="table" border>
					<tbody>
						<tr>
							<td>名字</td>
							<td>{{fliterData('name')}}</td>
						</tr>
						<tr>
							<td>地点</td>
							<td>{{fliterData('address')}}</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
	</interact-model>
</template>

<script>
	import {
		interactModelMixin,
		aPictureModelMixin
	} from 'common/js/mixins'

export default {
		mixins: [
			interactModelMixin,
			aPictureModelMixin
		],
		methods: {
			show (feature, layerNames) {
				this.$refs['interact-model'].showModel()
			if (layerNames) {
					this.data = feature.get('content').info || {}
			} else {
					this.data = feature.get('content') || {}
			}
			}
		}
	}
</script>

<style lang="scss">
	.school-model {
		width: 320px;
		height: 180px;
		.school-warpper {
			width: 100%;
			height: 100%;
			position: relative;
			padding: 5px;
			.school-table {
				width: 100%;
				height: 100%;
				.table {
					width: 100%;
					font-size: 14px;
					border: 1px solid #ddd;
					td {
						padding: 5px;
					}
				}
			}
		}
	}
</style>